<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

</head>

<body>
    <ul id="list">
        <li>list1</li>
        <li>list2</li>
        <li>list3</li>
        <li>list4</li>
        <li>list5</li>
        <li>list6</li>
        <li>list7</li>
        <li>list8</li>
        <li>list9</li>
        <li>list10</li>
    </ul>
</body>
<script>
    //返回dom伪数组，也称类数组
    const li = document.querySelectorAll('#list li')
    const resArr = [...li]
    resArr.push('888')
    resArr.splice(2, 4)
    console.log(resArr)
</script>

</html>